package com.aspire.boc.mms.wmf.util;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

/**
 * @author shining
 * @version Jul 23, 2009 1:34:36 PM
 */
public class SMTPAuthenticator extends Authenticator {
	private ResourceManager rm = ResourceManager.getInstance();

	public PasswordAuthentication getPasswordAuthentication() {
		String userName = rm.getValue("sendMail.userName");
		String password = rm.getValue("sendMail.password");
		return new PasswordAuthentication(userName, password);
	}
}
